package top.dfghhj.anhanx.oauth.convertor;

import org.springframework.beans.BeanUtils;
import top.dfghhj.anhanx.oauth.entity.DO.SysRole;
import top.dfghhj.anhanx.oauth.entity.DTO.SysRoleDTO;

public class SysRoleConvertor {

    public static SysRoleDTO toDTO(SysRole sysRole) {
        SysRoleDTO sysRoleDTO = new SysRoleDTO();
        BeanUtils.copyProperties(sysRole,sysRoleDTO);
        return sysRoleDTO;
    }

}
